package com.taoxi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.taoxi.common.annotation.Excel;
import com.taoxi.common.core.domain.BaseEntity;

/**
 * 加工厂管理对象 factory
 *
 * @author mnxiaotu
 * @date 2024-10-12
 */
public class Factory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 加工厂id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 加工厂名字 */
    @Excel(name = "加工厂名字")
    private String factoryName;

    /** 店铺电话 */
    @Excel(name = "店铺电话")
    private String phone;

    /** 开店资质 */
    @Excel(name = "开店资质")
    private String licence;

    /** 店铺售卖类型 */
    @Excel(name = "店铺售卖类型")
    private String type;

    /** 开店人姓名 */
    @Excel(name = "开店人姓名")
    private String keepername;

    /** 开店人证件 */
    @Excel(name = "开店人证件")
    private String keeperIDcard;

    /** 审核状态（0未审核1已通过2未通过） */
    @Excel(name = "审核状态", readConverterExp = "0=未审核1已通过2未通过")
    private String status;

    /** 开店日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开店日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date openTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setLicence(String licence)
    {
        this.licence = licence;
    }

    public String getLicence()
    {
        return licence;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setKeepername(String keepername)
    {
        this.keepername = keepername;
    }

    public String getKeepername()
    {
        return keepername;
    }
    public void setKeeperIDcard(String keeperIDcard)
    {
        this.keeperIDcard = keeperIDcard;
    }

    public String getKeeperIDcard()
    {
        return keeperIDcard;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setOpenTime(Date openTime)
    {
        this.openTime = openTime;
    }

    public Date getOpenTime()
    {
        return openTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("factoryName", getFactoryName())
                .append("phone", getPhone())
                .append("licence", getLicence())
                .append("type", getType())
                .append("keepername", getKeepername())
                .append("keeperIDcard", getKeeperIDcard())
                .append("status", getStatus())
                .append("openTime", getOpenTime())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
